<?php
foreach($products as $item){
            $name=$item['name'];
            $pic_link=$item['pic_link'];
            $prime_price=$item['prime_price'];
            $price=$item['price'];
            $desc=$item['desc'];
            $product_link=$item['product_link'];
            $click_counts=$item['click_counts'];
            $id=$item['id'];
?>

<div class="col">
	<a class="product_img" href="<?php echo $product_link; ?>"  target="_blank" onclick="counts(<?php echo $id; ?>);" >
		<img src="<?php echo $pic_link; ?>" alt="<?php echo $name;?>" />
	</a><hr />
	<div class="product_name"><a href="<?php echo $product_link; ?>" target="_blank" onclick="counts(<?php echo $id; ?>);" ><?php echo $name; ?></a></div>
	<div>
		<span class="price_left">市场价:<span class="prime_price"><?php echo ${prime_price}; ?>元</span></span>&nbsp;&nbsp;
		<span class="price_right">优惠价:<span class="price"><?php echo ${price}; ?>元</span></span>
	</div>
	<div class="p_button">
		<span class="love"><span class="count"><?php echo $click_counts; ?></span><span class="static">人关注 </span> </span>
		<a class="buy" href="<?php echo $product_link;?>" target="_blank" onclick="counts(<?php echo $id; ?> );" >
		<img src="<?php echo $buy_pic_link;?>" alt="立即购买"  /></a>
	</div>
	<div class="desc"><p><?php echo $desc; ?></p></div>
</div>
<?php
}
?>
